package com.example.oasystem.dao.notepaper;

import com.example.oasystem.entity.notepaper.AoaNotepaper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AoaNotepaperDao {
    int deleteByPrimaryKey(Long notepaperId);

    int insert(AoaNotepaper record);

    int insertSelective(AoaNotepaper record);

    AoaNotepaper selectByPrimaryKey(Long notepaperId);

    int updateByPrimaryKeySelective(AoaNotepaper record);

    int updateByPrimaryKey(AoaNotepaper record);

    @Select("select *from aoa_notepaper where notepaper_user_id=#{userId} order by create_time desc limit #{number},#{size}")
    List<AoaNotepaper> selectAll(int number,int size,Long userId);
    @Select("select *from aoa_notepaper where notepaper_user_id=#{userId} order by create_time desc ")
    List<AoaNotepaper> selectQuan(Long userId);

}